package com.iweb.util;

public class Const {
    /**
     * 项目中用到的常量
     */
    /*存宠物狗的品种*/
    public static final String[] DOG_STRAINS = new String[]{"拉布拉多","金毛","萨摩耶","泰迪"};
    /*存宠物企鹅的性别*/
    public static final String[] PENGUIN_SEX = new String[]{"Q仔","Q妹"};
    /*存宠物猫的颜色*/
    public static final String[] CAT_COLOR = new String[]{"白色","灰色","黄色","灰黄色"};

    /**
     * 定义静态方法显示宠物狗品种
     */
    public static void showDogStrains(){
        System.out.println("宠物狗品种:");
        for (int i = 0;i<DOG_STRAINS.length;i++){
            System.out.print((i+1)+"."+DOG_STRAINS[i]+"\t");
        }
    }

    /**
     * 定义静态方法显示宠物企鹅性别
     */
    public static void showPenguinSex(){
        System.out.println("宠物企鹅性别:");
        for (int i = 0;i<PENGUIN_SEX.length;i++){
            System.out.print((i+1)+"."+PENGUIN_SEX[i]+"\t");
        }
    }

    public static void showCatColor(){
        System.out.println("宠物猫颜色:");
        for (int i = 0;i<CAT_COLOR.length;i++){
            System.out.print((i+1)+"."+CAT_COLOR[i]+"\t");
        }
    }
}



